package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.HotProductRecommendRequest;
import com.ytjj.qmyx.admin.model.response.HotProductRecommendResponse;
import com.ytjj.qmyx.mall.model.HotProductRecommend;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 
 * @Version: 1.0
 */
public interface HotProductRecommendDao {

    List<HotProductRecommendResponse> selectList(HotProductRecommendRequest hotProductRecommendRequest);

    Integer insertHotProductRecommend(@Param("productId") Integer productId,
                                      @Param("hotProductId") Integer hotProductId,
                                      @Param("sort") Integer sort);

    Integer updateSort(@Param("recommendId") Integer recommendId, @Param("sort") Integer sort);

    Integer isExist(Integer productId);

    Integer removeData(Integer recommendId);

    List<HotProductRecommend> getListByHpi(Integer hotProductId);


}
